home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / bkwdtest / Makefile < prev    next >
Encoding:
Makefile  |  1992-10-29  |  1.8 KB  |  90 lines

  1. # ##################################################################
  2. #
  3. #                   NCSA HDF Version 3.2 release 2 
  4. #                               Oct 1992
  5. #                  MAKEFILE for testing HDF Version 3.2 release 2
  6. #
  7. #                          ABOUT THIS MAKEFILE
  8. #
  9. # This makefile creates HDF3.2 backward compatibility test programs.  
  10. # There are two programs: 
  11. # To remove all object files created by this makefile, enter "make clean".
  12. # ##################################################################
  13. #
  14. #                       PORTING INSTRUCTIONS
  15. #
  16. # You must modify the lines containing the symbol "==>" to make
  17. # this makefile compatible with your platform.
  18. #
  19. # ##################################################################
  20.  
  21. # ==> specify your machine
  22. MACHINE=SUN
  23.  
  24. # ==> specify your fortran compiler 
  25. FC=f77 
  26. FFLAGS=  -g
  27.  
  28. # ==> specify your C compiler
  29. CC=cc
  30.  
  31. # ==> where are your hdf.h, hdfi.h and vg.h files located?
  32. IFLAGS=   -I../include -I.
  33.  
  34. # ==> For Convex, specify CFLAGS as follows:
  35. #    STDFLAG = __STDC__
  36. #    CFLAGS=  -g -D${MACHINE} $(IFLAGS) -D${STDFLAG}
  37.  
  38. # ==> For IRIS4, specify CFLAGS as follows:
  39. #    CFLAGS=  -g -cckr
  40.  
  41. CFLAGS=  -g -D${MACHINE} $(IFLAGS)
  42.  
  43. # ==> where is your HDF3.2 library (libdf.a) located?
  44. LIBS32= ../lib/libdf.a
  45.  
  46. RM=/bin/rm
  47. RMFLAGS=-f
  48.  
  49. CTESTS= rs3 
  50.  
  51. CHDRS =
  52. CTSRCS= rs3.c
  53. CSRCS= transarray.c      
  54.  
  55. CTOBJS= rs3.o
  56. COBJS= transarray.o
  57.  
  58. HTESTS= 
  59. HHDRS = hfile.h hdf.h hdfi.h herr.h hproto.h 
  60. HTSRCS=
  61. HTOBJS= 
  62.  
  63. FTESTS= rs3f 
  64. FSRCS = rs3f.f 
  65. FOBJS = rs3f.o 
  66.        
  67.  
  68. all: objs ctests ftests htests
  69.  
  70. objs:   $(COBJS)
  71.  
  72. ctests: $(CTESTS)
  73.  
  74. ftests: $(FTESTS)
  75.  
  76. htests: $(HTESTS)
  77.  
  78. transarray.o: transarray.c
  79.     $(CC) -c $(CFLAGS) transarray.c
  80.  
  81. rs3:    rs3.c objs
  82.     $(CC) $(CFLAGS)  rs3.c $(COBJS) $(LIBS32) -o rs3
  83.  
  84. rs3f:    rs3f.f objs
  85.     $(FC) $(FFLAGS) rs3f.f $(COBJS) $(LIBS32) -o rs3f
  86.  
  87. clean:
  88.     rm -f $(CTESTS) $(HTESTS) $(FTESTS) 
  89.